package com.hj.collegetravel.models;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class CComment implements Serializable {
    private Integer cId;

    private Integer cUid;

    private Integer cFlag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date cTime;

    private Integer cVid;

    private Integer cCid;

    private Integer cRead;

    private String cContent;

    private String uicon;//用户头像
    private String uname;//用户名
    private String time;//时间

    private String uicon2;//被回复者头像
    private String uname2;//被回复者用户名

    private String vname;//被评论景点名

    private static final long serialVersionUID = 1L;

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public Integer getcUid() {
        return cUid;
    }

    public void setcUid(Integer cUid) {
        this.cUid = cUid;
    }

    public Integer getcFlag() {
        return cFlag;
    }

    public void setcFlag(Integer cFlag) {
        this.cFlag = cFlag;
    }

    public Integer getcVid() {
        return cVid;
    }

    public void setcVid(Integer cVid) {
        this.cVid = cVid;
    }

    public Integer getcCid() {
        return cCid;
    }

    public void setcCid(Integer cCid) {
        this.cCid = cCid;
    }

    public Date getcTime() {
        return cTime;
    }

    public void setcTime(Date cTime) {
        this.cTime = cTime;
    }

    public Integer getcRead() {
        return cRead;
    }

    public void setcRead(Integer cRead) {
        this.cRead = cRead;
    }

    public String getcContent() {
        return cContent;
    }

    public void setcContent(String cContent) {
        this.cContent = cContent == null ? null : cContent.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cId=").append(cId);
        sb.append(", cUid=").append(cUid);
        sb.append(", cFlag=").append(cFlag);
        sb.append(", cVid=").append(cVid);
        sb.append(", cCid=").append(cCid);
        sb.append(", cTime=").append(cTime);
        sb.append(", cRead=").append(cRead);
        sb.append(", cContent=").append(cContent);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public String getUicon() {
        return uicon;
    }

    public void setUicon(String uicon) {
        this.uicon = uicon;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getUicon2() {
        return uicon2;
    }

    public void setUicon2(String uicon2) {
        this.uicon2 = uicon2;
    }

    public String getUname2() {
        return uname2;
    }

    public void setUname2(String uname2) {
        this.uname2 = uname2;
    }

    public String getVname() {
        return vname;
    }

    public void setVname(String vname) {
        this.vname = vname;
    }
}